package com.technology.javase.write;

public class RunTime {
    //1,创建静态的全局唯一的对象
    private static RunTime currentRuntime = new RunTime();
    //2,私有构造方法，不让外部来调用
    private RunTime(){}
    //3,通过自定义的静态方法获取实例
    public static RunTime getRuntime(){
        return currentRuntime;
    }

}
